package com.anxin.service;

import java.util.List;
import java.util.Map;

import com.anxin.bean.Type;
import com.anxin.util.PageListData;

/**
 * type数据字典服务接口
 *
 * @author bobby
 *
 */

public interface TypeService {

	public void save(Type proj);

	public void delete(Type proj);

	public void delete(Integer id);

	public void update(Type proj);

	@SuppressWarnings("rawtypes")
	public PageListData queryPage(Map param, int currentPage, int pageSize);

	public Type findById(Integer id);

	public List<Type> findAll();

	/**
	 * 根据parent获取type
	 *
	 * @return
	 */
	public List<Type> findTypeByParent(int parentId);
}
